package cn.edu.njnu.opengmpback.Modeling.dao;

import cn.edu.njnu.opengmpback.Modeling.entity.ComputeModel;
import cn.edu.njnu.opengmpback.Modeling.entity.ConceptMaterial;
import cn.edu.njnu.opengmpback.Modeling.entity.ConceptModel;
import cn.edu.njnu.opengmpback.Modeling.entity.ConceptModelItems;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ConceptModelDao extends MongoRepository<ConceptModel,String> {

    ConceptModel findByProjectId(String projectId);
    Page<ConceptModelItems> findAllByNameLikeIgnoreCase(String searchText, Pageable pageable);

    Page<ConceptModelItems> findAllByProjectIdAndNameLikeIgnoreCase(String projectId,String searchText, Pageable pageable);
}
